<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script src="../../fast/dom/resources/event-sender-util.js"></script>
</head>
<body>

<p>In this test, we do execCommand('Indent') in the direct child of ShadowRoot
to confirm a crash doesn't happen.</p>

<div id="container" contenteditable></div>
<pre id="console"></div>

<script>
var shadowRoot = container.attachShadow({mode: 'open'});
shadowRoot.innerHTML = "<span contenteditable>Kotori Otonashi</span>"
var span = shadowRoot.firstChild;

mouseMoveToElem(span);
eventSender.mouseDown();
eventSender.mouseUp();

document.execCommand('Indent');

var successfullyParsed = true;
</script>
</body>

</html>
